/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import da.AccountAcction;
import entities.Account;
import java.math.BigDecimal;
import javax.ejb.Stateless;

/**
 *
 * @author QUY_THI
 */
@Stateless
public class AccountWithdrawal implements AccountWithdrawalRemote, AccountWithdrawalLocal {

    @Override
    public boolean withdrawal(Account account, BigDecimal amount) {
        boolean check = false;
        AccountAcction ac = new AccountAcction();
        boolean accountWithdrawal = ac.accountWithdrawal(account, amount);
        if (accountWithdrawal) {
            check = true;
        }
        return check;
    }
}
